




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/11/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfexamine.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfexamine.entity.YfExmaine;
import com.application.yfexamine.struts.form.YfExmaineForm;
import com.application.yfexamine.dao.YfExmaineDAO;
 /**
 * 
 * Description:YfExmaineService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/11/2012 
 * 
 */
public class YfExmaineService extends BaseService
{
	private YfExmaineDAO yfExmaineDAO;

	public YfExmaineDAO getYfExmaineDAO() {
		return this.yfExmaineDAO;
	}

	public void setYfExmaineDAO(YfExmaineDAO yfExmaineDAO) {
		this.yfExmaineDAO = yfExmaineDAO;
	}
        

        public YfExmaine getYfExmaine(YfExmaine yfExmaine) {
		return (YfExmaine) this.getBaseDao().queryByPk(yfExmaine, yfExmaine.getId());
	}
	
	public Integer getAllCountYfExmaine(YfExmaineForm yfExmaineForm){
		return this.yfExmaineDAO.getAllCountYfExmaine(yfExmaineForm);
	}
	
	public List<YfExmaine> searchYfExmaine(YfExmaineForm yfExmaineForm, PageBean pageBean) throws Exception {
		List<YfExmaine> yfExmaineList = (List) this.yfExmaineDAO.searchYfExmaine(yfExmaineForm, pageBean);
		return yfExmaineList;
	}
        
        public void deleteYfExmaines(YfExmaineForm yfExmaineForm){
	   this.yfExmaineDAO.deleteYfExmaines(yfExmaineForm);	 
	}
}
